GetObjectMeta
Description
GetObjectMeta is used to obtain the basic meta information of an object under a bucket, including ETag, Size (file size) and LastModified of the object, and does not return its contents.
Request Method
POST
Request Path
/apsara/route/OneRouter/GetObjectMeta
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
ETag | BODY | string | No | No sample value for this parameter. | ETag (entity tag) will be created when Object is generated. ETag is used to mark the content of an Object. for objects created PutObject requests, the ETag value is the MD5 value of its contents; For objects created in other ways, the ETag value is the UUID of its contents. The ETag value can be used to check whether the object content has changed. We do not recommend that you use ETag to verify data integrity as MD5 for the object content. default value: none |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
Last-Modified | BODY | string | No | No sample value for this parameter. | the date when Object was last modified, in the format of GMT time specified in HTTP 1.1 protocol. |
Content-Length | BODY | string | No | No sample value for this parameter. | the file size of the object. |
version | BODY | string | No | 2016-01-01 | version of api |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestID | string | 1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC | Request id |
Example
Successful Response example
{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}